<?php
/**********************************************
* 파일명: flashupload.php
* 설  명: 플래시 다중업로드가 지원되는 브라우저를 위한 파일입니다.
***********************************************/

include "lib.php";
$uploadurl = $blogURL."/plugin/TT_SkinManagerFileupload/";
$dir = $_GET['dir'];

global $adminSkinSetting;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo pluginLang::plts('스킨매니저 :: 파일업로드');?></title>
	<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $service['path'] . $adminSkinSetting['skin'];?>/plugin-config.css" />
	<style type="text/css">
		body
		{
			font-size: 12px;
		}

		.text1
		{
			background: #eee;
			color: #666;
			margin-top: 10px;
			padding: 15px;
		}

		.text1 ul
		{
			margin: 10px 0 0 30px;
		}

		.help
		{
			margin: 10px 20px 0 20px;
			text-align: justify;
			padding: 0;
		}

		.center
		{
			text-align: center;
		}
	</style>
	<script language="JavaScript" type="text/javascript">
		//<![CDATA[
			function js_close(){
				document.getElementById("msgdiv").style.display ="block";
				document.getElementById("msgdiv").innerHTML = "<?php echo pluginLang::plts('파일 업로드가 완료되었습니다.');?>";
				setTimeout("js_hidediv()",2000);
				opener.document.reg.submit();
			}
			function js_hidediv(){
				document.getElementById("msgdiv").style.display ="none";
			}
		//]]>
	</script>
</head>
<body>
	<div id="layout-head">
		<h1 class="caption"><?php echo pluginLang::plts('스킨매니저 :: 파일 업로드');?></h1>
	</div>

	<div id="layout-body">
		<ul id="menu">
			<li id="about-tab" class="selected" onclick="toggleTab('about'); return false;"><?php echo pluginLang::plts('파일 업로드');?></li>
		</ul>

		<div class="tab">
			<div class="text1">
				<?php echo pluginLang::plts('현재 폴더');?> : <strong><?php echo TT_SkinManagerEncode($dir,'d');?></strong>
			</div>
			
			<div style="text-align: center">
				<script language="JavaScript" type="text/javascript">
					//<![CDATA[
						var html ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="100" id="flashupload" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="<?php echo $pluginURL;?>/common/flash_upload.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="FlashVars" value="host=<?php echo $hostURL;?>&uploadurl=<?php echo $uploadurl;?>&dir=<?php echo $dir;?>" />';
						html +='<embed src="<?php echo $pluginURL;?>/common/flash_upload.swf" quality="high" bgcolor="#ffffff" width="300" height="100" name="flashupload" align="middle" FlashVars="host=<?php echo $hostURL;?>&uploadurl=<?php echo $uploadurl;?>&dir=<?php echo $dir;?>" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /><\/object>';
					//]]>
				</script>
				<script type="text/javascript" src="<?php echo $pluginURL;?>/js/TT_SkinManagerFlash.js"></script>
			</div>
			
			<?php echo pluginLang::plts('<p>.jpg .gif .png .xml .html .css .js .swf 파일만 업로드 가능합니다.</p>');?>
		</div>
	</div>
	<div id="msgdiv"></div>
</body>
</html>
